﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using VirtuOS.Base;

namespace VirtuOS.Components.Commands
{
    class about
    {
        public static string help = "Displays a short about summary for this project.";
        public static string register_name = "about";
        public static bool requires_root = false;

        public static void Command(string[] args)
        {
            if ((args.Length > 0) && (Regex.Match(args[0], @"(-)?-help", RegexOptions.IgnoreCase).Success))
            {
                Console.WriteLine(help);
            }
            else
            {
                Console.WriteLine(
                    "This is a simple virtualOS project by Growlith/dechiridas written in C#. " +
                    "It\ndoesn't serve much function except to explore C# and to have fun and " +
                    "share what is done.\n\nIf you need help type `list` for a list of commands.");
            }
        }
    }
}
